package day0729.oopTest;

public class Knife {//类：描述一种事物(抽象的概念)
    String name;
    double weight;
    void attackPerson(){
        System.out.println("攻击敌人");
    }

    public static void main(String[] args) {
        Knife tld=new Knife();
        tld.attackPerson();
    }

}


